package com.xfp.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class NodeVo {

    @ApiModelProperty(value = "名称",required = true)
    @NotBlank(message = "名称不能为空")
    private String name;
    @ApiModelProperty(value = "详细地址",required = true)
    @NotBlank(message ="详细地址不能为空")
    private String addr;
    @ApiModelProperty(value = "最后一级区域ID",required = true)
    @NotBlank(message ="最后一级区域id不能为空")
    private String areaCode;
    @ApiModelProperty(value = "创建人id",required = true)
    @NotBlank(message ="创建人id不能为空")
    private Integer createUser;
    @ApiModelProperty(value = "所属区域id",required = true)
    @NotBlank(message ="所属区域id不能为空")
    private String regionId;
    @ApiModelProperty(value = "所属商圈id",required = true)
    @NotBlank(message ="所属商圈id不能为空")
    private Integer businessId;
    @ApiModelProperty(value = "合作商id",required = true)
    @NotBlank(message ="合作商id不能为空")
    private Integer ownerId;
    @ApiModelProperty(value = "合作商名称",required = true)
    @NotBlank(message ="合作商名称不能为空")
    private String ownerName;
}
